<!DOCTYPE HTML>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport"
        content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>用印申请</title>
    <link rel="stylesheet" type="text/css" href="../css/aui.css" />
    <link rel="stylesheet" type="text/css" href="../css/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="css/comm.css" />
    <link rel="stylesheet" type="text/css" href="../script/mui/mui.picker.min.css" />
    <link rel="stylesheet" type="text/css" href="../script/mui/mui.reset.css" />
    <link rel="stylesheet" type="text/css" href="../script/vant/index.css" />
    <link rel="stylesheet" type="text/css" href="css/form.css" />
    <link rel="stylesheet" type="text/css" href="css/editStyle.css" />
    <link rel="stylesheet" type="text/css" href="css/home_task_con.css" />
    <style type="text/css">
        .aui_formtitle,
        .aui_formcontent textarea,
        .aui_formcontent select,
        .aui_formcontent input {
            font-size: 0.75rem;
        }

        .aui-list .aui-list-item-label-icon {
            padding-right: 0;
        }

        .aui-list .aui-list-item-input label {
            margin-right: 10px;
        }

        .aui-btn-primary {
            background: #01B2F5;
            width: 95%;
            left: 2.5%;
            bottom: 0.5rem;
            border-radius: 5px;
        }

        .inline_placeholder::placeholder {
            text-align: right;
        }

        .imglist_box {
            overflow: hidden;
        }

        .moreproject {
            width: 93%;
            float: left;
            line-height: 1rem;
            padding-top: 4px;
            /* margin-right: 10px; */
            text-align: right;
        }

        .aui_formcontent {
            text-align: right;
        }

        .stepper {
            float: right;
        }

        .stepper input {
            padding-left: 0px;
            width: 40px;
            text-align: center;
            float: left;
        }

        .van-stepper__minus {
            float: left;
        }

        .upload {
            margin-left: 20px;
            font-size: 0.65rem;
            color: #289fff;
        }

        .upload i {
            padding-left: 5px;
        }

        .wenjian_item {
            width: 100%;
            height: 1.6rem;
            line-height: 1.6rem;
            border-radius: 5px;
            background: #F6FBFF;
            margin-bottom: 4px;
        }

        .wj_name {
            width: 70%;
            float: left;
            /* background: #f6f6f6; */
            font-size: 0.75rem;
            padding-left: 10px;
        }

        .wj_delete i {
            padding-right: 10px;
            color: #289fff;
        }
        .wj_delete span{
            float: left;
            color: #289fff;
        }
        .wj_delete{
            /* background: #f5f5f5; */
            width: 25%;
            text-align: right;
            float: right;
        }




        /* 审批 */
        .gj_box {
            padding: 10px !important;
        }

        .task_process_basic_title_time {
            width: 30px;
            height: 30px;
            line-height: 30px;
            border-radius: 5px;
            border: dashed 0.5px #289fff;
            text-align: center;
            color: #289fff;

        }

        .task_process_basic_title_name .fl {
            font-size: 0.8rem;
        }

        .task_process_basic_title_name span {
            color: #999;
            font-size: 0.6rem;
        }

        .shenpi {
            float: left;

        }

        .shenpi_person {
            position: relative;
            width: 40px;
            margin-right: 2px;
            margin-left: 2px;
            text-align: center;
            /* padding-left: 5px; */

        }

        .person {
            width: 30px;
            height: 30px;
            line-height: 30px;
            font-size: 0.6rem;
            border-radius: 5px;
            text-align: center;
            color: #fff;
            background: #289fff;
            margin-left: 2px;
        }

        .person_name {
            width: 38px;
            text-align: center;
            font-size: 0.6rem;
            height: 30px;
            line-height: 30px;
        }

        .ellipsis-1 {
            width: 38px;
            text-align: center;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .shenpi_person img {
            position: absolute;
            width: 18px;
            height: 18px;
            right: 0px;
            top: -8px;
            overflow: hidden;
        }

        /* //弹窗 */
        .win_middle {
            width: 90%;
            top: 40%;
            min-height: 20%;
            max-height: 65%;
            border-radius: 10px;
            box-shadow: 0px 1px 10px 0px rgba(0, 0, 0, 0.2);
        }

        .choose_room_title {
            position: fixed;
            top: 0px;
            width: 100%;
            text-align: center;
            height: 2.5rem;
            line-height: 2.5rem;
            /* margin-top: 0.5rem; */
            background: #fff;
            font-size: 0.9rem;
            border-bottom: solid 0.5px #f5f5f5;
            overflow: hidden;
            /* overflow: hidden; */
        }

        .choose_room_content {
            /* position: absolute; */
            width: 90%;
            min-height: 40px;
            max-height: 16rem;
            /* background: #f3f3f3; */
            margin: 20px auto;
            margin-top: 3rem;
            overflow-y: auto;
        }

        .choose_room_item {
            /* background: #f00; */
            /* position:relative; */
            padding-left: 15px;
            padding-right: 15px;
            margin-bottom: 0.25rem;
        }

        .choose_room_item label {
            line-height: 2.2rem;
            font-size: 0.8rem;
            color: #333;
        }

        .choose_room_item i {
            float: right;
            line-height: 2.2rem;
            color: #289fff;
            font-size: 1rem;
        }

        .selected {
            background-color: #f8f8f8;
            border-radius: 5px;
        }
        .up_item{
            width: 100%;
            height: 3rem;
            line-height: 3rem;
            text-align: center;
        }
       
    </style>
</head>

<body>
    <div id="app" v-cloak>
        <!-- <van-popup v-model="show" round position="bottom">
            <van-cascader
                v-model="VisitType"
                title="请选择审批类型"
                :options="outTypemsg"
                active-color="#1989fa"
                @close="show = false"
                @finish="onFinish"
            /> -->
            <!-- <div class="choose_room_title">选择用印类型</div>
            <div class="choose_room_content">
                <div v-on:click="doSelectRoom(item)" class="choose_room_item" v-for="item in outTypemsg"
                    v-bind:class="{'selected':VisitType==item.ID}">
                    <label>{{item.Name}}</label><i v-if="VisitType==item.ID" class="icon iconfont icon-xuanze"></i>
                </div>
            </div> -->
            <!-- 反帝官方的解释供货商 -->
        <!-- </van-popup> -->
        <div class=" boxarea edit">
            <div class="">
                <div class="aui_formitem">
                    <div class="aui_formtitle ">用印类型<img class="col-star" src="../image/redstar.png"></div>
                    <div class="aui_formcontent" v-on:click="do_choose_type()">
                        <input class="choose" readonly="readonly" type="text" placeholder="请选择"
                            v-model="VisitTypeName">
                        <i class="icon iconfont icon-xiangyoujiantou"></i>
                    </div>
                </div>
                <div class="aui_formitem">
                    <div class="aui_formtitle">用印次数<img class="col-star" src="../image/redstar.png"></div>
                    <div class="aui_formcontent">
                        <van-stepper v-model="Number" class="stepper" />
                        <!-- <div class="moreproject" v-bind:class="{'textColorPlaceholder':form.ServiceFullName==''||form.ServiceFullName==undefined}">{{form.ServiceFullName==''||form.ServiceFullName==undefined?'请选择':form.ServiceFullName}}</div>
                        <i class="icon iconfont icon-xiangyoujiantou"></i> -->
                    </div>
                </div>
                <div class="aui_formitem">
                    <div class="aui_formtitle">用印标题<img class="col-star" src="../image/redstar.png"></div>
                    <div class="aui_formcontent">
                        <van-field v-model="tdTitle" rows="1" input-align="right" autosize  type="textarea" placeholder="请输入标题"/>
                        <!-- <input type="text" placeholder="请填写" v-model="tdTitle"> -->
                    </div>
                </div>

                <div class="aui_formitem block" style="border-bottom: none;">
                    <div class="aui_formtitle">用印原因<img class="col-star" src="../image/redstar.png">
                        <!-- <span style="margin-left: 10px;">( {{writeCount}}/500 )</span> -->
                    </div>
                    <div class="aui_formcontent" style="padding-left: 0px;">
                        <van-field v-model="tdRemark" class="moretext" rows="3" maxlength="500"  autosize type="textarea" placeholder="请填写用印原因，方便审批" show-word-limit/>
                        <!-- <textarea placeholder="请填写用印原因，方便审批" maxlength="500" v-model="tdRemark"
                            style="height: 4rem;" @input="writeMsg"></textarea> -->
                    </div>
                </div>
                <div class="aui_formitem block" style="border-bottom: none;">
                    <div class="aui_formtitle">附件
                        <span v-on:click="do_openUp()" class="upload">上传附件<i class="icon iconfont icon-xinzeng"
                                style="font-size: 0.5rem;"></i></span>
                    </div>
                    <div v-if="wenjianlist!=undefined&&wenjianlist.length>0" class="aui_formcontent"
                        style="padding-left: 0px; text-align: left;">
                        <div class="wenjian_item" v-for="(item,index) in wenjianlist">
                            <div class="wj_name ellipsis_one">{{item.FileName}}</div>
                            <div class="wj_delete">
                                <span v-on:click="open_flie(item,index)" >预览</span>
                                <i v-on:click="do_delete(item.ID)" class="icon iconfont icon-guanbi" style="font-size: 0.75rem; margin-left: 15px;"></i>
                            </div>
                        </div>
                    </div>
                </div>
                <van-popup v-model="showup" round  position="bottom" :style="{ height: '20%' }" >
                    <div v-on:click="add_picture()" class="up_item mt10" style="border-bottom: solid 0.5px #eee;">
                        上传图片
                    </div>
                    <!-- <div v-on:click="add_vedio()" class="up_item" style="border-bottom: solid 0.5px #eee;">
                        上传视频
                    </div> -->
                    <div v-on:click="add_wenjian()" class="up_item">上传文件</div>
                </van-popup>


            </div>

        </div>

        <!-- 审批 -->
        <div class=" boxarea edit">
            <div class="aui_formitem only_line no_line p0">
                <div class="work_title">审批流程</div>

                <div class="gj_box">
                    <ul class="processul">
                        <li class="processulli  li-border-color-grey">
                            <div class="task_process_con">
                                <div class="handle">
                                    <div class="task_process_basic_title">
                                        <div class="task_process_basic_title_name fl">
                                            <div class="fl aui_formtitle" style="min-width: 2rem;">审批人<img
                                                    class="col-star" src="../image/redstar.png"></div>
                                            <div class="handle_con_msg ">
                                                <span v-if="choose_id_list.length==0">请选择审批人</span>
                                                <span v-if="choose_id_list.length>0">1人通过即可</span>
                                            </div>
                                        </div>
                                        <div class="fr" style="width: 70%;">
                                            <div class="task_process_basic_title_time ccc fr"
                                                v-on:click="choose_persons(1)"><i class="icon iconfont icon-addApp"></i>
                                            </div>
                                            <div v-if="choose_id_list.length<=3" class="shenpi"
                                                v-for="(item,index) in choose_id_list">
                                                <div class="shenpi_person">
                                                    <div class="person">{{item.UserName.slice(-2)}}</div>
                                                    <div class="person_name ellipsis-1">{{item.UserName}}</div>
                                                    <img v-on:click="guanbi_pic(item.UserID,1)" src="../image/cx.png">
                                                    <!-- <i class="icon iconfont icon-guanbi" ></i> -->
                                                </div>
                                            </div>
                                            <div v-if="choose_id_list.length>3">
                                                <div class="shenpi">
                                                    <div class="shenpi_person">
                                                        <div class="person" v-bind:class="{'small_active':choose_id_list.length>99}" v-on:click="open_more(1)">{{choose_id_list.length}}人</div>
                                                        <div class="person_name ellipsis-1">全部</div>
                                                    </div>
                                                </div>
                                                <div class="shenpi" v-for="(item,index) in choose_id_list.slice(-2)">
                                                    <div class="shenpi_person">
                                                        <div class="person">{{item.UserName.slice(-2)}}</div>
                                                        <div class="person_name ellipsis-1">{{item.UserName}}</div>
                                                        <img v-on:click="guanbi_pic(item.UserID,1)"
                                                            src="../image/cx.png">
                                                        <!-- <i class="icon iconfont icon-guanbi" ></i> -->
                                                    </div>
                                                </div>
                                            </div>

                                        </div>
                                        <div class="cl"></div>
                                    </div>
                                </div>
                                <div class="hide_height"></div>
                            </div>
                        </li>

                        <li class="processulli  li-border-color-grey">
                            <div class="task_process_con">
                                <div class="handle">
                                    <div class="task_process_basic_title">
                                        <div class="task_process_basic_title_name fl">
                                            <div class="fl">抄送人</div>
                                            <div class="handle_con_msg ">
                                                <span v-if="select_id_list.length==0">请选择抄送人</span>
                                                <span v-if="select_id_list.length>0">已选{{select_id_list.length}}人</span>
                                            </div>
                                        </div>
                                        <div class="fr" style="width: 70%;">
                                            <div class="task_process_basic_title_time ccc fr" style="margin-left: 15px;"
                                                v-on:click="choose_persons(0)"><i class="icon iconfont icon-addApp"></i>
                                            </div>

                                            <div v-if="select_id_list.length<=3" class="shenpi"
                                                v-for="(item,index) in select_id_list">
                                                <div class="shenpi_person">
                                                    <div class="person">{{item.UserName.slice(-2)}}</div>
                                                    <div class="person_name ellipsis-1">{{item.UserName}}</div>
                                                    <img v-on:click="guanbi_pic(item.UserID,0)" src="../image/cx.png">
                                                    <!-- <i class="icon iconfont icon-guanbi" v-on:click="guanbi_pic(index,0)"></i> -->
                                                </div>
                                            </div>
                                            <div v-if="select_id_list.length>3">
                                                <div class="shenpi">
                                                    <div class="shenpi_person">
                                                        <div class="person" v-bind:class="{'small_active':select_id_list.length>99}" v-on:click="open_more(0)">{{select_id_list.length}}人</div>
                                                        <div class="person_name ellipsis-1">全部</div>
                                                        <!-- <img  v-on:click="guanbi_pic(index,0)" src="../image/cx.png"> -->
                                                    </div>
                                                </div>
                                                <div class="shenpi" v-for="(item,index) in select_id_list.slice(-2)">
                                                    <div class="shenpi_person">
                                                        <div class="person">{{item.UserName.slice(-2)}}</div>
                                                        <div class="person_name ellipsis-1">{{item.UserName}}</div>
                                                        <img v-on:click="guanbi_pic(item.UserID,0)"
                                                            src="../image/cx.png">
                                                        <!-- <i class="icon iconfont icon-guanbi" v-on:click="guanbi_pic(index,0)"></i> -->
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="cl"></div>
                                    </div>
                                </div>
                                <div class="hide_height"></div>
                            </div>
                        </li>
                    </ul>

                </div>


                <div class="aui_formitem no_line">
                </div>
            </div>
        </div>


        <!-- 审批申请说明 -->
        <div class=" boxarea edit">
            <div class="aui_formitem only_line no_line p0">
                <!-- ({{examine_writenum}}/500) -->
                <div class="work_title">审批申请说明</div>
                <div class="aui_formcontent" style="padding-left: 0px;">
                    <van-field v-model="Remark" class="moretext" rows="3" maxlength="500"  autosize type="textarea" placeholder="请填写审批说明（选填）" show-word-limit/>
                    <!-- <textarea placeholder="请填写审批说明（选填）" maxlength="500" v-model="Remark"
                        style="height: 4rem;" @input="examine_writeMsg"></textarea> -->
                </div>
            </div>
        </div>



        <div class="bottom">
            <div class="aui_bottombtn" v-on:click="do_save()">提交</div>
        </div>
    </div>
</body>
<script type="text/javascript" src="../script/api.js"></script>
<script type="text/javascript" src="../script/aui-toast.js"></script>
<script type="text/javascript" src="../script/aui-actionsheet.js"></script>
<script type="text/javascript " src="../script/vant/vue.js"></script>
<script type="text/javascript " src="../script/vant/vant.js"></script>
<script type="text/javascript" src="../script/config.js"></script>
<script type="text/javascript" src="../script/aui-slide.js"></script>
<script type="text/javascript" src="../script/mui/mui.min.js"></script>
<script type="text/javascript" src="../script/mui/mui.picker.min.js"></script>
<script type="text/javascript" src="../script/mui/mui.poppicker.js"></script>
<script type="text/javascript" src="../script/common.js"></script>
<script type="text/javascript " src="js/seal_add.js"></script>


</html>